package java4;

import java.util.Scanner;

public class Code050 {
  public static void main(String[] args) {
	System.out.println("\t星座屋");
	System.out.println("*********************");
	System.out.println("请输入月份:");
	Scanner input = new Scanner(System.in);
	int month = input.nextInt();
	System.out.println("请输入日份:");
	int day = input.nextInt();
	if(month==1){
		if(day>0&&day<20){
			System.out.println("摩羯座");
		}
		else if(day>19&&day<32){
			System.out.println("水瓶座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==2){
		if(day>0&&day<19){
			System.out.println("水瓶座");
		}
		else if(day>18&&day<32){
			System.out.println("双鱼座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==3){
		if(day>0&&day<21){
			System.out.println("双鱼座");
		}
		else if(day>20&&day<32){
			System.out.println("白羊座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==4){
		if(day>0&&day<20){
			System.out.println("白羊座");
		}
		else if(day>19&&day<32){
			System.out.println("金牛座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==5){
		if(day>0&&day<21){
			System.out.println("金牛座");
		}
		else if(day>20&&day<32){
			System.out.println("双子座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==6){
		if(day>0&&day<22){
			System.out.println("双子座");
		}
		else if(day>21&&day<32){
			System.out.println("巨蟹座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==7){
		if(day>0&&day<23){
			System.out.println("巨蟹座");
		}
		else if(day>22&&day<32){
			System.out.println("狮子座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==8){
		if(day>0&&day<23){
			System.out.println("狮子座");
		}
		else if(day>22&&day<32){
			System.out.println("处女座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==9){
		if(day>0&&day<23){
			System.out.println("处女座");
		}
		else if(day>22&&day<32){
			System.out.println("天秤座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==10){
		if(day>0&&day<24){
			System.out.println("天秤座");
		}
		else if(day>23&&day<32){
			System.out.println("天蝎座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==11){
		if(day>0&&day<23){
			System.out.println("天羯座");
		}
		else if(day>22&&day<32){
			System.out.println("射手座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else if(month==12){
		if(day>0&&day<22){
			System.out.println("射手座");
		}
		else if(day>21&&day<32){
			System.out.println("魔蝎座");
		}
		else{
			System.out.println("日份错误！");
		}

	}
	else{
		System.out.println("月份错误！");
	}
}
}
